Create Customer from Lead with Tenant Id
This request enables you to create a new customer from a lead by creating a link between Live Platform portal database and the OnlinePstnGateway (AudioCodes SBC device configured to connect calls between PSTN trunk and Microsoft Teams) using the customer's Microsoft Azure tenant Id.
URI
{{baseUrl}}/api/v3/customer
HTTP Method
POST
Request Body
Parameter |
Type |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ConfigurationName |
string |
|
||||||||||||
shortName |
string |
Short customer name, complying with validation rules for customer name:
|
||||||||||||
CustomerFulName |
string |
Generally the company name, however, any value can be used. |
||||||||||||
msTenantID |
string |
The Microsoft Azure subscription Tenant Id of the customer lead. |
Example Request Body
{
"configurationName": "OcEssential_TENANT_TYPE",
"customerShortName": "SIPTest",
"customerFullName": "SIPTest",
"msTenantID": "f94238e5-4f2c-4e1b-8125-2d27122ca75f"
}
Example Response
The initial response displays the Task Id.
Parameter
|
Type |
Description |
---|---|---|
Task Id |
string |
The queued task Id that is generated for this action. You must run the Task request to retrieve the status of the action. See Task Status. Note that the wst string in the prefix is unique for this endpoint. |
{
"jobId": "wst_80b54f45-6643-4fdf-960a-638c18edb787"
}
The execution of the request may take a few minutes. The status will progress from 'In Progress' to 'Completed Success'.
{
"id": "wst_a597fe86-1e86-45d1-8dcf-cbdc6029c06b",
"status": "CompletedSuccess",
"details": [
"Converted"
],
"executionMessages": [
{
"level": "Information",
"message": "Site created in Ovoc"
}
],
"outputData": {
"umpCustomerGuid": "da68eafc-d3c6-4d3b-9a10-c48b26c6086b"
},
"createTime": "0001-01-01T00:00:00"
}
HTTP Responses
■ | 200 OK |
Parameter |
Type |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
string |
Task Id |
||||||||||||
status |
string |
One of the following values:
|
||||||||||||
details |
string |
One of the following values:
|
||||||||||||
executionMessages |
list array |
List array including the following parameters:
|
||||||||||||
level |
string |
One of the following values:
|
||||||||||||
message |
string |
Copy
Copy
Copy
Copy
The following error is displayed when there is no active lead: Copy
The following error is displayed when a customer has already been created for the tenant: Copy
|
||||||||||||
umpCustomerGuid |
string($uuid) |
This id is created in the Live Platform database for the customer tenant when a Live Platform license is applied. This value is also obtained in the 'Get Task' response when the customer is created. |
||||||||||||
outputData |
list array |
Additional information. |